import request from '@/utils/request'

// 上传图片/视频
export function upLoad() {
    return request({
        url: '/upload',
        method: 'post'
    })
}

// 上传zip压缩包
export function upZip(saveZip, zipKey) {
    return request({
        url: `/upload?unzip=1&saveZip=${saveZip}&zipKey=${zipKey}`,
        method: 'post'
    })
}

// 上传文件
export function uploadBase64(file, encodeKey, token) {
    return request({
        url: `/api/uploadBase64/${file.size}/key/${encodeKey}?authorization=UpToken${token}`,
        method: 'post'
    })
}


export function getMdApi(url){
    return request({
        url:url,
        method:'get'
    })
}
